package base

/**
 * Hello World
 */
fun main(args:Array<String>){

    println("arr[0]=${args[0]}")

    for (number in args)
        println("arr[]=$number")

    val myNumber = if(args[0]>args[1]) "1" else "2"
    println(when(myNumber){
        "1"->"111"
        "2"->"222"
        "3"->"333"
        else->"sorry"
    })
    Greeter(myNumber).grt()

}

class Greeter(val name:String){
    fun grt(){
        println("hello $name")
    }
}